package blobs

import (
	"context"

	"gitee.com/djaf/my-certs/app/data/dxo"
	"gitee.com/djaf/my-certs/app/web/dto"
)

// Service : Service for BLOBs
type Service interface {
	Insert(ctx context.Context, item *dto.BLOB) (*dto.BLOB, error)

	Update(ctx context.Context, id dxo.BlobID, item *dto.BLOB) (*dto.BLOB, error)

	Remove(ctx context.Context, id dxo.BlobID) error

	Find(ctx context.Context, id dxo.BlobID) (*dto.BLOB, error)

	List(ctx context.Context, q *Query) ([]*dto.BLOB, error)
}
